<?php
/**
 * User: 五哥派
 * Date: 2024/7/1
 * Tel(同WX): 17335592719
 */
namespace app\api\controller\v1;

use app\api\controller\ApiBase;
use app\api\model\system\Agreement as AgreementModel;

class Agreement extends ApiBase {

    protected $model;

    public function __construct(AgreementModel $model){

        parent::__construct();
        $this->model = $model;

    }

    public function getDetail(){
        $id = $this->request->param('id', 0);
        $detail = $this->model->findDataByID($id);
        if (empty($detail)) {
            return success('查询成功', ['detail' => $detail]);
        }
        return success('查询成功', ['detail' => $detail]);
    }


}